﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HAVTKPack
{
        [Serializable]
    public class RectilinearGrid
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="x">网格ColNumber</param>
        /// <param name="y">网格RowNumber</param>
        /// <param name="z"></param>
        public RectilinearGrid(int row,int col,int layer)
        {
            if (row < 1 || col < 1 || layer < 1)
            {

                throw new ArgumentException("rectilineargrid参数不正确");
                
            }



            _xArray = new float[col];//个数等于网格ColNumber
            _yArray = new float[row];//个数等于网格RowNumber
            _zArray = new float[layer];


 
        }


        float[] _xArray;

        public float[] XArray
        {
            get { return _xArray; }
          
        }
        float[] _yArray;

        public float[] YArray
        {
            get { return _yArray; }
          
        }

        float[] _zArray;

        public float[] ZArray
        {
            get { return _zArray; }
            
        }



        public int XLength
        {
            get { return this._xArray.Length; }
            
        }



        public int YLength
        {
            get { return this._yArray.Length; }
            
        }



        public int ZLength
        {
            get { return this._zArray.Length; }
            
        }

    }
}
